package org.galaxyworld.flycode.core;

import org.galaxyworld.flycode.utils.MessageHandler;

public abstract class AbstractGenerator {

    protected MessageHandler messageHandler;

    public void setMessageHandler(MessageHandler messageHandler) {
        this.messageHandler = messageHandler;
    }

    protected void showMessage(String... message) {
        if (messageHandler != null) {
            messageHandler.onMessageReceived(message);
        }
    }

    public abstract void generate();

}
